﻿<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	<p:messages autoUpdate="true" />
	<h:outputText value="Lakcímkártya:" />

	<p:dialog header="Selected Dates" widgetVar="dialog" showEffect="fade" hideEffect="fade">
		<h:panelGrid id="displayAddressCard" columns="2" cellpadding="5">
			<h:outputText value="Popup Date:" />
			<h:outputText value="#{customerMaintBean.customer.addressCard.ACvalidFrom}">
				<f:convertDateTime pattern="yyyy/MM/dd" />
			</h:outputText>
		</h:panelGrid>
	</p:dialog>
	<h:panelGrid columns="2" style="margin-bottom:10px" cellpadding="5">

		<h:outputLabel for="AddressCardIdentityNumber" value="Azonosító: " />
		<p:inputMask id="AddressCardIdentityNumber" required="true" label="Azonosító" value="#{customerMaintBean.customer.addressCard.ACidentityNumber}" mask="999999aa" />

		<h:outputLabel value="Érvényesség kezdete:" />
		<!--//TODO: maxdate today -->
		<p:calendar value="#{customerMaintBean.customer.addressCard.ACvalidFrom}" maxdate="now" showOn="button"/>
		<!--//TODO: mindate today -->
		<h:outputLabel value="Lejárati dátum:" />
		<p:calendar value="#{customerMaintBean.customer.addressCard.ACexpirationDate}" mindate="now" showOn="button"/>

		<h:outputLabel for="AddressCardIssuingAuthority" value="Kiállító hatóság: " />
		<p:inputMask id="AddressCardIssuingAuthority" required="true" label="Kiállító hatóság" value="#{customerMaintBean.customer.addressCard.ACissuingAuthority}" />

	</h:panelGrid>
</ui:composition>